package com.bxw.chatgptapi.domain.security.model.vo;
import org.apache.shiro.authc.AuthenticationToken;
public class JwtToken implements AuthenticationToken{

    private String jwt;

    public JwtToken(String jwt) {
        this.jwt = jwt;
    }

    /**
     * 等同用户
     * @return
     */
    @Override
    public Object getPrincipal() {
        return jwt;
    }


    /**
     * 等同密码
     * @return
     */
    @Override
    public Object getCredentials() {
        return jwt;
    }

}
